``{% extends 'myadmin/base/obj_list.html' %}
{% load static %}
{% block search_form %}
{% endblock %}
{% block add_button %}
     <button type="button" class="btn btn-primary btn-sm"
                            data-url="{% url 'myadmin:course_add' %}">添加
                    </button>
{% endblock %}
{% block table_content %}


    <tr>
        <th>#</th>
        <th></th>
        <th>课程名字</th>
        <th>课件研发人员</th>
        <th>上传时间</th>
        <th>是否为示范视频</th>
        <th>是否为教学大纲</th>
{#        <th>时长</th>#}
{#        <th>封面</th>#}
{#        <th>逻辑删除</th>#}
    </tr>
{% for obj in course %}

{#  {% for obj_1 in lesson %}#}
        <tr>
            <td style="width: 40px" data-url="myadmin:course_list"><a href="#">{{ forloop.counter }}</a></td>

            <td>{{ obj.lesson__name }}</td>
            <td>{{ obj.title }}</td>
            <td>{{ obj.teacher__name }}</td>
            <td>{{ obj.update_time }}</td>
               <td>{% if obj.is_example %}是{% else %}否{% endif %}</td>
            <td>{% if obj.is_outline %}是{% else %}否{% endif %}</td>

{#            <td>{{ obj.outline|default:'无' }}</td>#}
{#            <td>{{ obj.duration }}</td>#}
{#            <td><img src="{{ obj.cover_url }}" alt="" style="width: 80px;height: 20px"></td>#}
{#            <td>{% if obj.is_delete %}是{% else %}否{% endif %}</td>#}
        </tr>
{#    {% endfor %}#}
    {% endfor %}
{% endblock %}
{% block script %}
    <script src="{% static 'js/myadmin/group/group_list.js' %}"></script>
{% endblock %}